// 示例 

/* const template = '{{name}}很厉害，才{{age}}岁';
const context =  {name: 'bottle', age: 15}
function render (template, context) {
 for(const k in context){
    template = template.replace("{{"+k+"}}", context[k])
 }
 return template
}
console.log(render(template, context))

function render (template, context) {
   return template.replace(/{{(.*?)}}/g, (match, key) => context[key.trim()])
} */
function a () {
   return new Promise((resolve, reject) => {
      reject(123)
      resolve(111)
      
   })
}
async function b () {
   const t = await a()
   console.log('t', t)
   console.log("1112111111111111")
} 
try {
   b()
}catch(err){
console.log("----------", err)
}
